public class test_2_2 {
	 public static void main(String args[])
	 {
		 for (int i=0; i<3;i++)
		 {
			 System.out.println(i);
		 }
		 System.out.println();
		 for (int i=0;i<3; ++i)
		 {
			 System.out.println(i);
		 }
	 }
	}


